from glob import glob
from os.path import join

#
# Create build envs
#
build_env = Environment(CCFLAGS=['-Wall', '-Werror', '-std=c99',
				'-pedantic-errors', '-g', '-ggdb'])
# More relaxed env for SWIG code
#swig_env = Environment(CCFLAGS=['-Wall', '-O2', '-I.', '-fno-strict-aliasing'])
#swig_env.Tool('swig')
#from distutils.sysconfig import get_python_inc
#swig_env.Append(CPPPATH=[get_python_inc()])
# Altered env for swig utility libs
#swig_util_env = build_env.Copy(CPPPATH=[get_python_inc()])

#
# FGS Library
#
fgs_lib = build_env.SharedLibrary('fgs-game',
				 [x for x in glob('*.c') if x != "main.c"])

fgs_lib_test = build_env.Program('testlib', 'main.c',
				LIBS='fgs-game', LIBPATH='.')


#
# SWIG bindings - Python
#
#
# Default targets.
#
Default([fgs_lib])
